package cn.anecansaitin.whimsy.common.register;

import cn.anecansaitin.whimsy.Whimsy;
import cn.anecansaitin.whimsy.common.block.entity.RockAltarEntity;
import net.minecraft.core.registries.Registries;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredRegister;

public class ModBlockEntities {
    public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES = DeferredRegister.create(Registries.BLOCK_ENTITY_TYPE, Whimsy.MODID);

    public static final DeferredHolder<BlockEntityType<?>, BlockEntityType<RockAltarEntity>> ROCK_ALTAR = BLOCK_ENTITIES.register("rock_altar", () -> BlockEntityType.Builder.of(RockAltarEntity::new, ModBlocks.ROCK_ALTAR.get()).build(null));
}
